﻿<%@ Page Title="" Theme="Default_Themes" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ThemMoiDoanVien.aspx.cs" Inherits="DanhMuc_ThemMoiDoanVien" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <link href="../assets/bootstrap-fileupload/bootstrap-fileupload.css" rel="stylesheet" />
    <div class="row-fluid">
        <div class="span12">
            <div class="box" >
                <div class="box-title">
                    <h3><i class="icon-file"></i>Thêm mới đoàn viên cho đơn vị:&nbsp;<%=st %></h3>
                    <div class="box-tool">
                        <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
                        <a data-action="close" href="#"><i class="icon-remove"></i></a>
                    </div>
                </div>
                <div class="box-content"  style="border:1px solid #B6D1F2;">
                    <asp:UpdatePanel ID="udt1" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="box">
                                        <div class="box-content">
                                            <div class="control-group info">
                                                <table style="width: 100%">
                                                    <tr>
                                                        <td style="vertical-align: top;" class="auto-style1">
                                                            <label class="control-label" style="width: 150px; padding-right: 10px;">Mã đoàn viên</label>
                                                            <div class="controls">
                                                                <asp:TextBox ID="txtMaDonVien" runat="server" ReadOnly="true" CssClass="span12" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                            </div>
                                                            <div style="height: 5px;"></div>
                                                            <label class="control-label" style="width: 150px; padding-right: 10px;">Họ và tên <span style="color: red;">(*)</span></label>
                                                            <div class="controls">
                                                                <asp:TextBox ID="txtHoTen" runat="server" CssClass="span12" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                                <asp:RequiredFieldValidator runat="server" ValidationGroup="kiemtra" ID="validate" ControlToValidate="txtHoTen" ErrorMessage="Nhập họ tên đoàn viên" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                                                            </div>
                                                            <div style="height: 5px;"></div>
                                                            <div class="control-group">
                                                                <label class="control-label">Giới tính&nbsp;&nbsp;&nbsp;</label>
                                                                <div class="controls">
                                                                    <div style="border: 1px solid #3A87AD">
                                                                        &nbsp;
                                                                        <asp:RadioButton ID="nam" runat="server" CssClass="radio inline" Checked="true" Text="Nam" GroupName="phai" />
                                                                        <asp:RadioButton ID="nu" runat="server" CssClass="radio inline" Text="Nữ" GroupName="phai" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <label class="control-label" style="width: 150px; padding-right: 10px;">Ngày sinh <span style="color: red;">(*)</span></label>
                                                            <div class="controls">
                                                                <asp:TextBox BorderStyle="Solid" placeholder="Ngày/tháng/năm" BorderColor="#3A87AD" BorderWidth="1px" ID="txtngaysinh" runat="server" class="span10"></asp:TextBox>
                                                                <asp:ImageButton runat="Server" ID="Image1" ImageUrl="~/css/icons/lich.gif" AlternateText="Click to show calendar" />
                                                                <ajaxToolkit:CalendarExtender ID="calendarButtonExtender2" runat="server" TargetControlID="txtngaysinh" PopupButtonID="Image1" Format="dd/MM/yyyy" />
                                                                  <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender2" MaskType="Date" runat="server" Mask="99/99/9999" TargetControlID="txtngaysinh"></ajaxToolkit:MaskedEditExtender>
                                                                <asp:RequiredFieldValidator runat="server" ValidationGroup="kiemtra" ID="RequiredFieldValidator2" ControlToValidate="txtngaysinh" Text="Nhập ngày sinh" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                                                            </div>
                                                            <div style="height: 5px;"></div>
                                                            <label class="control-label" style="width: 150px; padding-right: 10px;">Nơi sinh</label>
                                                            <div class="controls">
                                                                <asp:TextBox ID="txtnoisinh" runat="server" CssClass="span12" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                            </div>
                                                            <div style="height: 5px;"></div>
                                                            <label class="control-label" style="width: 150px; padding-right: 10px;">Số CMND</label>
                                                            <div class="controls">
                                                                <asp:TextBox ID="txtCMND" runat="server" CssClass="span12" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                                <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="txtCMND" FilterType="Numbers"></ajaxToolkit:FilteredTextBoxExtender> 

                                                            </div>
                                                        </td>
                                                        <td style="vertical-align: top;">
                                                            <div class="fileupload fileupload-new" data-provides="fileupload">
                                                                <div class="fileupload-new thumbnail">
                                                                    <img src="../imgdoanvien/noimage.jpg" />
                                                                </div>
                                                                <div class="fileupload-preview fileupload-exists thumbnail"></div>
                                                                <div style="height: 24px">
                                                                    <span class="btn btn-file"><span class="fileupload-new">Chọn hình</span>
                                                                        <span class="fileupload-exists">Sửa</span>
                                                                        <asp:FileUpload ID="imgdoanvien" runat="server"/>
                                                                    </span>
                                                                    <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Xóa</a>
                                                                </div>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </table>
                                                
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Ngày cấp</label>
                                                <div class="controls">
                                                    <asp:TextBox BorderStyle="Solid" placeholder="Ngày/tháng/năm" BorderColor="#3A87AD" BorderWidth="1px" ID="txtngaycapcmnd" runat="server" class="span11"></asp:TextBox>
                                                    <asp:ImageButton runat="Server" ID="Image2" ImageUrl="~/css/icons/lich.gif" AlternateText="Click to show calendar" />
                                                    <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtngaycapcmnd" PopupButtonID="Image2" Format="dd/MM/yyyy" />
                                               
                                        <ajaxToolkit:MaskedEditExtender ID="txtNgayKhaiGiang_MaskedEditExtender" MaskType="Date" runat="server" Mask="99/99/9999" TargetControlID="txtngaycapcmnd"></ajaxToolkit:MaskedEditExtender>
                                                     </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Nơi cấp</label>
                                                <div class="controls">
                                                    <asp:TextBox ID="txtNoiCap" runat="server" CssClass="span12"  onblur="KiemTraInjection(this);"></asp:TextBox>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Nguyên quán</label>
                                                <div class="controls">
                                                    <asp:TextBox ID="txtNguyenquan" runat="server" CssClass="span12" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Thường trú</label>
                                                <div class="controls">
                                                    <asp:TextBox ID="txtThuongTru" runat="server" CssClass="span12" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Chổ ở hiện nay</label>
                                                <div class="controls">
                                                    <asp:TextBox ID="txtHienNay" runat="server" CssClass="span12" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Điện thoại</label>
                                                <div class="controls">
                                                    <asp:TextBox ID="txtDienthoai" runat="server" CssClass="span12" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Email</label>
                                                <div class="controls">
                                                    <asp:TextBox ID="txtEmail" runat="server" CssClass="span12" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Dân tộc</label>
                                                <div class="controls">
                                                    <asp:DropDownList ID="drldantoc" runat="server" CssClass="span12" Height="28px"></asp:DropDownList>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Tôn giáo</label>
                                                <div class="controls">
                                                    <asp:DropDownList ID="drltongiao" runat="server" CssClass="span12" Height="28px"></asp:DropDownList>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Hôn nhân</label>
                                                <div class="controls">
                                                    <asp:DropDownList ID="drlHonnhan" runat="server" CssClass="span12" Height="28px"></asp:DropDownList>
                                                </div>
                                                <div style="height:20px;"></div>
                                                <div  style="float:right;">
                                                    <asp:LinkButton ID="btnsave" OnClick="btnsave_Click" class="btn btn-primary"  runat="server" Width="60px"><i class="icon-save"></i>&nbsp;&nbsp;Lưu</asp:LinkButton>
                                                    <asp:LinkButton ID="btnsavedubi"  OnClick="btnsavedubi_Click" class="btn btn-primary"  runat="server"><i class=" icon-star-half-empty"></i>&nbsp;&nbsp;Lưu dự bị</asp:LinkButton>
                                                    <br />
                                                    <br />
                                                    <asp:Label ID="StatusLabel" runat="server" ForeColor="Red" Visible="false"></asp:Label>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="box">
                                        <div class="box-content">
                                            <div class="control-group info">
                                                <label class="control-label" style="width:150px;padding-right:10px;">Thành phần gia đình xuất thân</label>
                                                <div class="controls">
                                                    <asp:TextBox ID="txtXuatthan" runat="server" CssClass="span12" TextMode="MultiLine" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Nghề nghiệp bản thân</label>
                                                <div class="controls">
                                                    <asp:TextBox ID="txtNghenghiep" runat="server" CssClass="span12" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Chức vụ - nơi công tác</label>
                                                <div class="controls">
                                                    <asp:TextBox ID="txtchucvunoicongtac" runat="server" CssClass="span12" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Mô tả công việc</label>
                                                <div class="controls">
                                                    <asp:TextBox ID="txtMota" runat="server" CssClass="span12" TextMode="MultiLine" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Điạ bàn dân cư</label>
                                                <div class="controls">
                                                    <asp:DropDownList ID="drlKhuVuc" runat="server" CssClass="span12" Height="28px"></asp:DropDownList>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Trình độ văn hóa</label>
                                                <div class="controls">
                                                    <asp:DropDownList ID="drlTrinhdovanhoa" runat="server" CssClass="span12" Height="28px"></asp:DropDownList>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Trình độ chuyên môn</label>
                                                <div class="controls">
                                                    <asp:DropDownList ID="drlTrinhdochuyenmon" runat="server" CssClass="span12" Height="28px"></asp:DropDownList>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Chức vụ đoàn</label>
                                                <div class="controls">
                                                    <asp:DropDownList ID="drlChucVuDoan" runat="server" CssClass="span12" Height="28px"></asp:DropDownList>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Đảng viên</label>
                                                <div class="controls">
                                                    <label class="checkbox">
                                                        <asp:CheckBox ID="chk_dangvien" runat="server" TextAlign="Right" />
                                                        Đoàn viên là đảng viên
                                                    </label>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Chuyên môn</label>
                                                <div class="controls">
                                                    <fieldset>
                                                        <legend>Chuyên môn</legend>
                                                        Bằng cấp 1: <asp:TextBox ID="txtbang1" runat="server" CssClass="span9"></asp:TextBox>
                                                        <div style="height:5px;"></div>
                                                        Bằng cấp 2: <asp:TextBox ID="txtbang2" runat="server" CssClass="span9"></asp:TextBox>
                                                        <div style="height:5px;"></div>
                                                        Ngoại ngữ:&nbsp;&nbsp;&nbsp;<asp:DropDownList ID="drlNgoaingu" runat="server" CssClass="span9" Height="25px"></asp:DropDownList>
                                                        <div style="height:5px;"></div>
                                                        Tin học:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:DropDownList ID="drlTinhoc" runat="server" CssClass="span9" Height="25px"></asp:DropDownList>
                                                    </fieldset>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Tình hình sức khỏe</label>
                                                <div class="controls">
                                                    <asp:DropDownList ID="drlSuckhoe" runat="server" CssClass="span6" Height="25px"></asp:DropDownList>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <label class="control-label" style="width:150px;padding-right:10px;">Ngày vào đoàn</label>
                                                <div class="controls">
                                                    <asp:TextBox BorderStyle="Solid" placeholder="Ngày/tháng/năm" BorderColor="#3A87AD" BorderWidth="1px" ID="txtngayvaodoan" runat="server" class="span11"></asp:TextBox>
                                                    <asp:ImageButton runat="Server" ID="Image3" ImageUrl="~/css/icons/lich.gif" AlternateText="Click to show calendar" />
                                                    <ajaxToolkit:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtngayvaodoan" PopupButtonID="Image3" Format="dd/MM/yyyy" />
                                        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender1" MaskType="Date" runat="server" Mask="99/99/9999" TargetControlID="txtngayvaodoan"></ajaxToolkit:MaskedEditExtender>
                                                </div>
                                                <div style="height:5px;"></div>
                                                <div class="control-group">
                                                    <div class="controls">
                                                        <div class="khungvien1">
                                                            &nbsp;
                                                            <asp:RadioButton ID="rdbMoi" runat="server" CssClass="radio inline" Checked="true" Text="Phát triển mới" GroupName="phattrienmoi" OnCheckedChanged="rdbMoi_CheckedChanged" AutoPostBack="true"/>
                                                            <asp:RadioButton ID="rdbchuyentoi" runat="server" CssClass="radio inline" Text="Cơ sở khác chuyển đến" GroupName="phattrienmoi" OnCheckedChanged="rdbchuyentoi_CheckedChanged" AutoPostBack="true" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div style="height:5px;"></div>
                                                 <div class="control-group">
                                                <asp:Label ID="lblngaychuyen" runat="server" CssClass="control-label" Text="Ngày chuyển đến" Visible="false"></asp:Label>
                                                <div class="controls">
                                                    <asp:TextBox BorderStyle="Solid" Visible="false" placeholder="Ngày/tháng/năm" BorderColor="#3A87AD" BorderWidth="1px" ID="txtngaychuyenden" runat="server" class="span11"></asp:TextBox>
                                                    <asp:ImageButton runat="Server" Visible="false" ID="Image4" ImageUrl="~/css/icons/lich.gif" AlternateText="Click to show calendar" />
                                                    <ajaxToolkit:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtngaychuyenden" PopupButtonID="Image4" Format="dd/MM/yyyy" />
                                                    <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender3" MaskType="Date" runat="server" Mask="99/99/9999" TargetControlID="txtngaychuyenden"></ajaxToolkit:MaskedEditExtender>
                                                </div>
                                                     </div>
                                                <div style="height:5px;"></div>
                                                  <div class="control-group">
                                                <asp:Label ID="lbldonvicu" runat="server" CssClass="control-label" Text="Đơn vị củ" Visible="false"></asp:Label>
                                                <div class="controls">
                                                    <asp:TextBox ID="txtDonViCu" Visible="false" runat="server" CssClass="textboxformat" onblur="KiemTraInjection(this);"></asp:TextBox>
                                                </div>
                                                      </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="rdbMoi" EventName="CheckedChanged" />
                            <asp:AsyncPostBackTrigger ControlID="rdbchuyentoi" EventName="CheckedChanged" />
                            <asp:PostBackTrigger ControlID="btnsave" />
                            <asp:PostBackTrigger ControlID="btnsavedubi" />
                        </Triggers>
                    </asp:UpdatePanel>
                    <asp:UpdateProgress runat="server" ID="udtprog" AssociatedUpdatePanelID="udt1">
                        <ProgressTemplate>
                            <div class="progress">
                                <img src="../img/ajax-loader.gif" />
                            </div>
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                </div>
            </div>
        </div>
    </div>
    <style type="text/css">
        .khungvien {
            border: 1px solid #3a87ad;
            width:48%;
        }
        .khungvien1 {
            border: 1px solid #3a87ad;
            width:100%;
        }
        .nhan {
            width:150px;padding-right:10px;margin-top:-15px;
        }
        .auto-style1
        {
            width: 473px;
        }
    </style>
</asp:Content>

